const Koa = require('koa');
const Router =  require('koa-router');

const app = new Koa();
const router = new Router()

// 装载所有路由
router.use('/user',require('./router/user'))

app.listen(3000,()=>{
    console.log('Server run at port:3000');
})

app.use(router.routes())
    .use(router.allowedMethods());